package com.np.demo1.interface1;

public class Class1 {
    public void test1(){
        Interface1 interface1 = new Child1();
        interface1.test1();
    }

    public class Child1 implements Interface1{
        @Override
        public void test1(){
            System.out.println("hello");
        }
    }

    public interface Interface1{
        void test1();
    }
}